<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改调拨单明细')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-detail-edit" th:object="${transferOrderDetail}">
            <input name="id" th:field="*{id}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">调拨单号：</label>
                <div class="col-sm-8">
                    <input name="transferCode" th:field="*{transferCode}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">供应商编码：</label>
                <div class="col-sm-8">
                    <input name="supplierCode" th:field="*{supplierCode}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">温区id：</label>
                <div class="col-sm-8">
                    <input name="temperAreaId" th:field="*{temperAreaId}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">商品编码：</label>
                <div class="col-sm-8">
                    <input name="merchandiseCode" th:field="*{merchandiseCode}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">商品名称：</label>
                <div class="col-sm-8">
                    <input name="merchandiseName" th:field="*{merchandiseName}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">商品sku：</label>
                <div class="col-sm-8">
                    <input name="merchandiseSku" th:field="*{merchandiseSku}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">商品规格：</label>
                <div class="col-sm-8">
                    <input name="merchandiseSpecif" th:field="*{merchandiseSpecif}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">商品图片：</label>
                <div class="col-sm-8">
                    <textarea name="merchandiseImg" class="form-control">[[*{merchandiseImg}]]</textarea>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">单位商品体积：</label>
                <div class="col-sm-8">
                    <input name="merchandiseVolume" th:field="*{merchandiseVolume}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">单位商品重量：</label>
                <div class="col-sm-8">
                    <input name="merchandiseWeight" th:field="*{merchandiseWeight}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">商品总体积：</label>
                <div class="col-sm-8">
                    <input name="totalVolume" th:field="*{totalVolume}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">商品总重量：</label>
                <div class="col-sm-8">
                    <input name="totalWeight" th:field="*{totalWeight}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">销售单位：</label>
                <div class="col-sm-8">
                    <input name="saleUnit" th:field="*{saleUnit}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">调拨数量/销售单位：</label>
                <div class="col-sm-8">
                    <input name="transferSaleNum" th:field="*{transferSaleNum}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">调拨数量/调拨单位：</label>
                <div class="col-sm-8">
                    <input name="transferTfNum" th:field="*{transferTfNum}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">调拨箱数：</label>
                <div class="col-sm-8">
                    <input name="transferCartonNum" th:field="*{transferCartonNum}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">货箱类型id：</label>
                <div class="col-sm-8">
                    <input name="containerId" th:field="*{containerId}" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "/system/transfer/detail";
        $("#form-detail-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-detail-edit').serialize());
            }
        }
    </script>
</body>
</html>